package com.lanou3g.code0408.setterandgetter;

import java.util.Scanner;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/8;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setScore(50);
        System.out.println(s1.getScore());

        s1.setScore(101);

        s1.score = 90;
        System.out.println(s1.score);
    }

    void fun() {
        Student s = new Student();
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        if (a < 0 || a > 100) {
            System.out.println("数据异常");
        } else {
            s.score = a;
        }
        System.out.println(s.score);
    }
}
